package com.wzy.business.store.login.presenter

import com.wzy.business.store.login.bean.CaptchaAli

import com.wzy.business.store.login.bean.LoginRequest
import com.wangzhenyu.common.base.BasePresenter
import com.wangzhenyu.common.base.BaseView
import com.wangzhenyu.common.base.bean.LoginInfo
import com.wangzhenyu.common.net.BaseResponse
import com.wzy.business.store.me.bean.AccountSetting

interface LoginPresenter : BasePresenter {


    fun getLoginSmsCode(bean: CaptchaAli)
    fun login(loginRequest: LoginRequest)

    fun getRegisterSmsCode(bean: CaptchaAli)
    fun register(phone: String, password: String, code: String, username: String)

    fun requestAccountSettingData()

    interface View : BaseView {
        fun onLoginSmsCodeSuccess()
        fun onLoginSmsCodeError(body: BaseResponse?)

        fun onLoginSuccess(body: LoginInfo?)
        fun onLoginError()

        fun onRegisterSmsCodeSuccess()
        fun onRegisterSmsCodeError()

        fun onRegisterSuccess(body: LoginInfo?)
        fun onRegisterError()

        fun onAccountSettingSuccess(bean: AccountSetting)
        fun onAccountSettingError(code: Int)
    }


}